{extend name="base" /} {block name="seo"}
<title>修改资料 - {$site.name}</title>
<meta name="keywords" content="{$site.keywords}">
<meta name="description" content="{$site.description}">
{/block}
{block name="css"}
<link href="__HOME__/css/user.css" rel="stylesheet" type="text/css">
{/block}
{block name="body"}
<div class="container">
    <div class="user">
        {include file="index/menu"}
        <div class="user-info user-box fl">
            <div class="title">
                修改资料
             </div>

            <div class="list">

                <form class="layui-form atuikeFormSkin1">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline" style="margin-right: 40px; width: 215.5px;">
                            <input type="text"  name="username" class="layui-input" placeholder="用户名" maxlength="16" value="{$user.username}">
                        </div>
                        <div class="layui-form-mid layui-word-aux">用户名30天只能修改一次</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-inline" style="margin-right: 40px; width: 215.5px;">
                            <input type="text" name="nickname" class="layui-input" placeholder="昵称" maxlength="16"  value="{$user.nickname}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">我的简介</label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="description" placeholder="签名">{$user.description}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <input type="radio" name="sex"  value="1" title="男" {if $user.sex eq 1} checked {/if}/>
                            <input type="radio" name="sex" value="2" title="女" {if $user.sex eq 2} checked {/if} >
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">我的QQ</label>
                        <div class="layui-input-inline" style="margin-right: 40px; width: 215.5px;">
                            <input type="text" class="layui-input" placeholder="QQ" maxlength="10" name="qq" value="{$user.qq}">
                        </div>
                        <div class="layui-form-mid layui-word-aux">投稿后用户联系您的方式，个人主页也会显示</div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn atuikeBtnSkin1" lay-submit="" lay-filter="changeinfo">保存信息</button>
                            <a class="layui-btn layui-btn-primary" href="{:url('user/index/index')}" >返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script src="__HOME__/js/user.js"></script>
{/block}